package com.gdufe.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gdufe.common.utils.PageUtils;
import com.gdufe.order.dto.CreateOrderDto;
import com.gdufe.common.entity.OrderEntity;
import com.gdufe.order.vo.UserOrderDetilsVo;

import java.util.Map;

/**
 * 
 *
 * @author honghu
 * @email 3027708213@qq.com
 * @date 2023-10-15 18:45:52
 */
public interface OrderUserService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 创建订单
     */
    void createOrder(CreateOrderDto orderDto);

    UserOrderDetilsVo getOrderDetils(Long id);

    boolean payOrder(Long id);

    void cancelOrder(Long id);


}

